package com.cloudbroker.bcs.platform.ltb.bizexport.t2.admin;

import com.cloudbroker.bcs.common.entity.HSBCPSBackVO;
import com.cloudbroker.bcs.platform.ltb.bizapi.service.admin.AdminCommentBizService;
import com.cloudbroker.bcs.platform.ltb.bizapi.service.admin.back.*;
import com.cloudbroker.bcs.platform.ltb.bizapi.service.admin.vo.*;
import com.cloudbroker.bcs.platform.ltb.bizapi.t2service.admin.AdminCommentT2BizService;
import com.hundsun.jresplus.remoting.impl.annotation.ServiceParam;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;

/**
 * Created by lili19289 on 2016/7/20.
 */
@Service
public class AdminCommentT2 implements AdminCommentT2BizService{

    @Resource
    private AdminCommentBizService adminCommentService;

    @Override
    public HSBCPSBackVO topComment(@ServiceParam("param")CommentIdForm commentIdForm) {
        return adminCommentService.funTopComment(commentIdForm);
    }

    @Override
    public HSBCPSBackVO closeComment(@ServiceParam("param")CommentIdForm commentIdForm) {
        return adminCommentService.funCloseComment(commentIdForm);
    }

    @Override
    public CommentVOResult queryComments(@ServiceParam("param")CommentQueryForm queryForm){
        return  adminCommentService.queryComments(queryForm);
    }

    public BlackWordBack funAddBlackWord(@ServiceParam("param")BlackWordForm wordForm){
        return adminCommentService.funAddBlackWord(wordForm);
    }


    public HSBCPSBackVO funDelBlackWord(@ServiceParam("param")BlackWordIdForm wordForm){
        return adminCommentService.funDelBlackWord(wordForm);
    }

    public HSBCPSBackVO funEditBlackWord(@ServiceParam("param")BlackWordContentForm wordForm){
        return adminCommentService.funEditBlackWord(wordForm);
    }

    public BlackWordResult funQueryBlackWords(BlackKeyWordForm wordForm){
        BlackWordResult result = adminCommentService.funQueryBlackWords(wordForm);
        return result;
    }

    @Override
    public BlackUserBack funAddBlackUser(@ServiceParam("param") UserIdForm userForm) {
        return adminCommentService.funAddBlackUser(userForm);
    }

    @Override
    public HSBCPSBackVO funDelBlackUser(@ServiceParam("param") BlackUserIDForm userForm) {
        return adminCommentService.funDelBlackUser(userForm);
    }

    public BlackUserResult funQueryBlackUsers(BlackUserForm form){
        BlackUserResult result = new BlackUserResult();
        result = adminCommentService.funQueryBlackUser(form);
        return result;
    }

    public UserResult funQueryUsers(UserQueryForm form){
        return adminCommentService.funQueryUsers(form);
    }


}
